<!DOCTYPE html>
<html lang="en">
{% load static %}
{% include 'ui/header.html' %}
<body>
{% include 'ui/nav-top.html' %}
<div class="container-fluid">
    <div class="row">
         {% include 'ui/nav-left.html' %}
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
             <ol class="breadcrumb">
                  <li><a href="{% url 'ui:module'  %}">模块</a></li>
                  <li><a href="{% url 'ui:case' mid %}">用例</a></li>
                  <li class="active">步骤管理</li>
             </ol>
            <h1 class="page-header">{{name}}--检查点管理</h1>
             <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-check" id="btn-new">新建</button>
            <input type="hidden" id="cid" value="{{cid}}" />
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                         <th>名字</th>
                        <th>元素</th>
                        <th>查找类型</th>
                        <th>操作方法</th>
                        <th>扩展</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% if check_list %}
                    {% for i in  check_list %}
                    <tr id="{{i.id}}">
                        <td>{{i.name}}</td>
                        <td>{{i.element_info}}</td>
                        <td>{{i.find_type}}</td>
                        <td>{{i.operate_type}}</td>
                        <td>{{i.extend}}</td>
                        <td>
                            <input type="button" class="btn btn-lg btn-primary btn-edit" value="编辑"  data-toggle="modal" data-target="#modal-check">
                            <input type="button"  class="btn btn-lg btn-primary btn-del" value="删除">
                        </td>
                    </tr>
                    {% endfor %}
                    {% else %}
                    <tr>
                        <td>无数据</td>
                    </tr>
                    {% endif %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

{% include 'ui/del.html' %}
{% include 'ui/edit-check.html' %}
{% include 'ui/foot.html' %}
<script src=" {% static 'js/common1.js'%}"></script>
<script src=" {% static 'js/check.js'%}"></script>


</body>
</html>
